//
//  NewsArrayUnit.swift
//  ReadHub
//
//  Created by 龙轶群 on 2017/5/11.
//  Copyright © 2017年 longyiqun. All rights reserved.
//

import Foundation

// News Array类
class NewsArrayUnit {

    // 私有成员
    private var _id: Int? = 0
    private var _url: String? = ""
    private var _title: String? = ""
    private var _groupId: Int? = 0
    private var _siteName: String? = ""
    private var _mobileUrl: String? = ""
    private var _authorName: String? = ""
    private var _duplicatedId: Int? = 0
    private var _publishDate: String? = ""
    
    // Get&Set方法
    var id: Int? {
        get{
            return _id
        }
        set{
            _id = newValue
        }
    }
    
    var url: String? {
        get{
            return _url
        }
        set{
            _url = newValue
        }
    }
    
    var title: String? {
        get{
            return _title
        }
        set{
            _title = newValue
        }
    }
    
    var groupId: Int? {
        get{
            return _groupId
        }
        set{
            _groupId = newValue
        }
    }
    
    var siteName: String? {
        get{
            return _siteName
        }
        set{
            _siteName = newValue
        }
    }
    
    var mobileUrl: String? {
        get{
            return _mobileUrl
        }
        set{
            _mobileUrl = newValue
        }
    }
    
    var authorName: String? {
        get{
            return _authorName
        }
        set{
            _authorName = newValue
        }
    }
    
    var duplicatedId: Int? {
        get{
            return _duplicatedId
        }
        set{
            _duplicatedId = newValue
        }
    }
    
    var publishDate: String? {
        get{
            return _publishDate
        }
        set{
            _publishDate = newValue
        }
    }
}
